const {
	defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
	publicPath:'/dist/',
	transpileDependencies: true,
	devServer: {
		client: {
			overlay: false // 编译错误时，取消全屏覆盖（建议关掉）
		},
		proxy: {
			'/api': {
				// target: 'http://chuangzhi.cahuayu.com',
				target: 'http://chuangzhiquan.aishangts.com',
				changeOrigin: true,
				pathRewrite: {
					'^/': ''
				},
				headers: {
					'Access-Control-Allow-Origin': '*'
				}
			}
		},
		port: 9527,
	}
})